﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    /// <summary>
    /// Nguyễn Đặng Anh Duy
    /// MSSV : 11100204
    /// Email : itc.anhduy@gmail.com
    /// <summary>
    class CInfoAbout
    {
        #region "Variable
        private List<Texture2D> _listTexture2D = new List<Texture2D>();
        private Texture2D _bgAbout;
        private Texture2D _bgBlack;
        private Texture2D _btnPrevious;
        private Texture2D _btnNext;
        private Texture2D _btnBackMenu;

        private Rectangle _recBtnPrevious;
        private Rectangle _recBtnNext;
        private Rectangle _recBtnBackMenu;
        ContentManager _Content;
        #endregion

        #region "Properties"
        public Texture2D BgBlack
        {
            set { _bgBlack = value; }
            get { return _bgBlack; }
        }
        public Texture2D BtnPrevious
        {
            set { _btnPrevious = value; }
            get { return _btnPrevious; }
        }
        public Texture2D BtnNext
        {
            set { _btnNext = value; }
            get { return _btnNext; }
        }
        public Texture2D BtnBackMenu
        {
            set { _btnBackMenu = value; }
            get { return _btnBackMenu; }
        }
        public Rectangle RecBtnPrevious
        {
            set { _recBtnPrevious = value; }
            get { return _recBtnPrevious; }
        }
        public Rectangle RecBtnNext
        {
            set { _recBtnNext = value; }
            get { return _recBtnNext; }
        }
        public Rectangle RecBtnBackMenu
        {
            set { _recBtnBackMenu = value; }
            get { return _recBtnBackMenu; }
        }
        public Texture2D BgAbout
        {
            set { _bgAbout = value; }
            get { return _bgAbout; }
        }
        public List<Texture2D> ListTexture2D
        {
            set { _listTexture2D = value; }
            get { return _listTexture2D; }
        }
        #endregion

        #region "Constructor"
        public CInfoAbout(ContentManager content)
        {
            _Content = content;
            BgAbout = _Content.Load<Texture2D>(@"Resource/Menu/About/bgAbout");
            BgBlack = _Content.Load<Texture2D>(@"Resource/Maps/Pause");
            ListTexture2D.Add(_Content.Load<Texture2D>(@"Resource/Menu/About/1"));
            ListTexture2D.Add(_Content.Load<Texture2D>(@"Resource/Menu/About/2"));
            ListTexture2D.Add(_Content.Load<Texture2D>(@"Resource/Menu/About/3"));
            ListTexture2D.Add(_Content.Load<Texture2D>(@"Resource/Menu/About/4"));

            BtnNext = _Content.Load<Texture2D>(@"Resource/Menu/About/btnNext");
            BtnPrevious = _Content.Load<Texture2D>(@"Resource/Menu/About/btnPrevious");
            BtnBackMenu = _Content.Load<Texture2D>(@"Resource/Menu/About/btnPrevious");
            RecBtnPrevious = new Rectangle(30, 240, BtnPrevious.Width, BtnPrevious.Height);
            RecBtnNext = new Rectangle(715, 240, BtnNext.Width, BtnNext.Height);
            RecBtnBackMenu = new Rectangle(720, 20, BtnBackMenu.Width, BtnBackMenu.Height);
        }
        #endregion
    }
}
